package com.gzk.oeno.ihm.opinion;

import com.gzk.oeno.business.opinion.Opinion;
import com.gzk.oeno.tech.ui.IdInternalFrame;
import com.gzk.utils.ihm.UIUtils;

public class SingleOpinionIFrame extends IdInternalFrame{

	private final Opinion opinion;
	
	public SingleOpinionIFrame(Opinion opinion){
		super(opinion.getFriendlyName(), true, true, true, true);
		this.opinion = opinion;
		
		setFrameIcon(UIUtils.loadSilentIcon("icons/opinion_16.png"));
	}
	
	
	@Override
	public String getId() {
		return "Opinion@"+opinion.getId();
	}

}